export default function getcookie (name) {
  console.log('cook:' + document.cookies)
  let cookie = {}
  document.cookies.split(';').forEach(function (el) {
    let [k, v] = el.split('=')
    cookie[k.trim()] = v
  })
  return cookie[name]
}
